import store from '@/store'
export const imageerror = {
  inserted(el, options) {
    el.onerror = function() {
      el.src = options.value
    }
  }
}
export const allow = {
  inserted(el, options) {
    const points = store.state.user.userInfo.roles.points
    if (!points.includes(options.value)) {
      el.style.display = 'none'
    }
  }
}
